Make dfu-util flash to the offset set by modm:platform:cortex-m:linkerscript.flash_offset - #1163
Merged
Merged
Conversation
…rscript.flash_offset
salkinium
approved these changes
May 14, 2024
Member
|
There is already a PR for dual core devices: #844, I'm also fixing the atomics support, which we will need for a multi-core message queue (plus MPU support to disable caching). |
Contributor
Author
No, I just wondered if I need to port the flash offset to CMake, too. |
Contributor
Author
Thanks for the pointer! This looks like a good start for me. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Today I started playing around with my Arduino Portenta H7 board. It has a (yet unsupported) dual core STM32H7 and a bootloader. When trying to set the flash offset with
modm:platform:cortex-m:linkerscript.flash_offsetI noted that the dfu scripts always flash to 0x08000000.This is my proposal to support dfu with flash offsets. I have tested it with the Portenta H7 board using scons and make. CMake currently does not support dfu-util as a programming tool, right?
I have also verified that make and scons still work and dfu-util flashes to 0x08000000 when
modm:platform:cortex-m:linkerscript.flash_offsetis not specified.I'm looking forward to add support for the STM32H747 soon, at least for the Cortex M7 core.